﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace WeChatSDK.WeChatDto.Conversation.ReceivingMessage.EventMessage
{
    /// <summary>
    /// 上报地理位置事件消息
    /// </summary>
    [XmlRoot(Namespace = "", IsNullable = false, ElementName = "xml")]
    public class LocationEventMessageDto : EventMessageDto
    {
        /// <summary>
        /// 地理位置维度，事件类型为LOCATION的时存在
        /// </summary>
        [XmlElement("Latitude", DataType = "double")]
        public double Latitude { get; set; }
        /// <summary>
        /// 地理位置经度，事件类型为LOCATION的时存在
        /// </summary>
        [XmlElement("Longitude", DataType = "double")]
        public double Longitude { get; set; }
        /// <summary>
        /// 地理位置精度，事件类型为LOCATION的时存在
        /// </summary>
        [XmlElement("Precision", DataType = "double")]
        public double Precision { get; set; }
    }
}
